Repository navigation
Conversation
… own, on every desktop ADR-0018 put a tray in the daemon, ADR-0021 moved it to the hub, ADR-0045 took the notifications out of it. A contribution for macOS (#248) built a menu bar client as a separate process and showed why: AppKit wants the main thread, which the hub's server has. It also read every daemon's state and judged it on its own, a third reading beside the dashboard's and the notifications'. The tray is `devstack tray` on every platform, started by the hub (off with `devstack hub tray off` or `DEVSTACK_NO_TRAY`), a client of the hub: `GET /hub/summary` says what it shows, the same as what notifies; its actions are the dashboard's requests. One menu model, drawn per platform (Shell_NotifyIconW, a StatusNotifierItem over zbus so the Linux binary stays static, an NSStatusItem). ADR-0018 point 2 and ADR-0021 are amended. Refs #1, #248 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hub (ADR-0060) The hub starts `devstack tray` (unless `devstack hub tray off`, `DEVSTACK_NO_TRAY`, or no desktop): the dashboard's mark, green when something runs, amber while a stack starts or stops, red when something needs attention, grey when nothing runs. Its menu opens the dashboard, lists every registered stack with what needs attention (a click opens that service), and starts, stops or opens a stack's folder, each a request to the hub as the dashboard makes it. Quitting it stops nothing. - `GET /hub/summary`: every stack at a glance and one state over all. What needs attention comes from the streams the hub follows for its notifications (`notify::rules::Scope::glance`), so the tray, the notifications and the dashboard agree; a failed start from the dashboard too. - `devstack-desktop::tray`: one menu model, drawn per platform. Windows: `Shell_NotifyIconW` on a hidden window, re-added when Explorer restarts. Linux: a StatusNotifierItem with a dbusmenu over zbus, so the binary stays static; it registers again when a watcher appears. macOS: the AppKit status item from #248, tinted by state. - One tray per user (a lock beside the hub's state); a tray of an older devstack than the hub's hands over to the new one. `devstack hub tray [on|off]`; `self uninstall` ends it with the hub. Checked live on Ubuntu's GNOME (AppIndicator): the item registers, the menu follows the summary, Stop, Start and Start Dashboard Hub work, off, on and Quit end it. Windows and macOS are checked by clippy for their targets only; docs/macos.md lists what a tester checks. Closes #1 Replaces #248 Co-authored-by: offline-first <2144520+offline-first@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1. Replaces #248, whose macOS AppKit adapter this takes over.
Why
#248 proposed a macOS-only menu bar client (
devstack menubar) that read every daemon's/v1/stackand worked out each stack's state itself. The need is the same on Windows first (#1) and on Linux, and a third reading of the state would drift from the dashboard's and the notifications'. ADR-0060 (Accepted) makes the tray one client process for every platform, started by the hub, which says what it shows.What
GET /hub/summary: every registered stack (running, starting or stopping, services ready of all, started lanes, what needs attention) and one state over all of them. What needs attention is what notifies (ADR-0045), read from the same streams (Scope::glance), plus a failed start from the dashboard.devstack tray: the hub starts it at its own start (off withdevstack hub tray offorDEVSTACK_NO_TRAY; no desktop, no tray). One per user. It works out no state and never talks to a daemon: Start, Stop (down?infra=true, as the dashboard's Stop; lanes keep running), Open Folder (/hub/open,files) and Open in Dashboard (paired, asdevstack ui) go through the hub. Quitting it stops nothing. A tray older than the hub hands over to the new devstack's.devstack-desktop::tray: one menu model, three adapters:Shell_NotifyIconWon a hidden top-level window (re-added onTaskbarCreated), popup menu on either click.org.kde.StatusNotifierItemandcom.canonical.dbusmenuover zbus (theservicefeature), so the binary stays static; it registers again when a watcher appears.devstack hub tray [on|off];self uninstallends the tray with the hub.Checked
cargo clippy --workspace --all-targets,cargo fmt, unit tests for the workspace,--test hub(the summary reports a failed start).devstack-desktopwith clippy forx86_64-pc-windows-msvcandaarch64-apple-darwin(hub and CLI need C toolchains for those targets; their tray code is platform-independent).hub tray off/on, a stopped hub and Quit behave as the ADR says.🤖 Generated with Claude Code